<template>
  <div class="block">
    <el-timeline>
      <el-timeline-item v-for="(item,index) of timeline" :key="index" :timestamp="item.timestamp" placement="top">
        <el-card>
          <h4>{{ item.title }}</h4>
          <p>{{ item.content }}</p>
        </el-card>
      </el-timeline-item>
    </el-timeline>
  </div>
</template>

<script>
export default {
  data() {
    return {
      timeline: [
        {
          timestamp: '2021/01/11',
          title: '确定项目名称',
          content: '小组讨论2021/01/11 9:46'
        },
        {
          timestamp: '2021/01/12',
          title: '设计数据库，明确流程',
          content: '规划流程与进度 2021/01/12 9:06'
        },
        {
          timestamp: '2021/1/13',
          title: '搭建框架',
          content: '搭建基础框架，明确各自分工 2021/1/13 11:46'
        },
        {
          timestamp: '2021/1/15',
          title: '项目主体已经完成',
          content: '各项流程运行无误 2021/1/15 20:46'
        },
        {
          timestamp: '2021/1/16',
          title: '项目整合',
          content: '整合项目，调试已经基本通过 2021/1/16 11:46'
        }
      ]
    }
  }
}
</script>
